package org.example.enums;

/**
 * 状态枚举示例
 * @author chenfukeng
 */
public enum StatusEnum implements ValueEnum {
    /**
     * 激活状态
     */
    ACTIVE("1", "激活"),

    /**
     * 未激活状态
     */
    INACTIVE("0", "未激活");

    private final String code;
    private final String text;

    StatusEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getText() {
        return text;
    }
}